﻿@using WebAppMVCTest01.ViewModels
@model EmployeeListViewModel
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>MyViewEmp04</title>
</head>
<body>
    Hello
    <hr />
    <div>
        <b>Employee Details</b><br />
        <br />
        <table style="border:double">
            <tr>
                <th>Employee Name</th>
                <th>Salary</th>
            </tr>
            @foreach (EFEmployeeViewModel item in Model.EFEmployees)
            {
                <tr>
                    <td>@item.EmployeeName</td>
                    <td style="background-color:@item.SalaryColor">@item.Salary</td>
                </tr>
            }
        </table>
    </div>
</body>
</html>
